home *** CD-ROM | disk | FTP | other *** search
- Path: cypher.3do.com!user
- From: tsw@3do.com (Tom Watson)
- Newsgroups: comp.lang.c++,comp.lang.c,alt.lang.delphi,comp.lang.pascal.delphi.misc,comp.lang.pascal.delphi.components
- Subject: Re: Checking for security device connected to lpt1
- Date: Tue, 02 Apr 1996 14:48:03 -0800
- Organization: The 3DO Corporation
- Distribution: world
- Message-ID: <tsw-0204961448030001@cypher.3do.com>
- References: <316071EA.51BF@telepost.no>
- NNTP-Posting-Host: cypher.3do.com
-
- In article <316071EA.51BF@telepost.no>, Ken Dahle <kendahle@telepost.no> wrote:
-
- > Hello.
- >
- > Can anyone give a clue about how to write code to check for a security
- > device connected to the parallel port(lpt1)?
- >
- > Examples in any lang. would be great.
- >
-
-
- How about this: (coded in C, probably compatable with C++)
-
- /* Routine to detect security device */
- int is_secure (void)
- {
- return 1; /* Value of true */
- }
-
- It should work in all cases I know about. If you have a security device,
- it will return the value 1 (facsimile of TRUE). Saves EVERYONE lots of
- time!!
-
- :-)
-
- --
- Tom Watson
- tsw@3do.com (Home: tsw@johana.com)
-